require "import"
import "android.app.*"
import "android.os.*"
import "android.widget.*"
import "android.view.*"
import "java.lang.*"
import "java.io.*"
if File(File(activity.getLuaPath()).getParent().."/home/main.lua").exists()then
--在这里写更新检查
  activity.newActivity("home")
 else
  local u="https://gitee.com/jimonik/androlua/raw/master/assets.zip"
  Http.download(u,activity.getLuaDir().."/assets.zip",nil,nil,function(a,t)
    ZipUtil.unzip(activity.getLuaDir().."/assets.zip",activity.getLuaDir().."/home")
    activity.newActivity("home")
    File(activity.getLuaDir().."/assets.zip").delete()
  end)
end
activity.finish()